<?php
/**
 * Created by PhpStorm.
 * User: ly
 * Date: 2017\12\15 0015
 * Time: 13:29
 */
use backend\controllers\DtActionFilter;
if(DtActionFilter::checkPackage('package_edit', Yii::$app->session->get('packageid')))
    echo '<img src="/image/assetPackage/edit.png" class="edit-img" id="transferInfoEdit">';
?>
<div class="perfect-logo">
    <img src="/image/officeHall/uploadAssetPackage/wsxx.png" class="pull-left">
    <span class="pull-left">转让信息</span>
</div>
<?php
//判断该数组是否为空 若空则不显示
$transfer=$data['transfer'];
$flag=FALSE;
foreach($transfer as $key=>$val){
    foreach($transfer[$key] as $value){
        if(!empty($value)){
            $flag=TRUE;
            break;
        }
    }
}
if($flag){
?>
<form class="form-horizontal " id="transferForm">
    <!-- 1 -->
    <div class="form-group mb25">
        <label for="" class="pull-left control-label">资产包提供方</label>
        <div class="pull-left label-div" id="transfertype">
        <?PHP
            $transferid= $transfer['lumper']['transfer']==2?2:1;
            $package_transfer=Yii::$app->params['package_transfer'];
            echo '<input type="text" class="form-control" id="" value="'.$package_transfer[$transferid].'" disabled="disabled">';
        ?>
        </div>
    </div>
    <!-- 左右两个栏目 -->
    <!-- 里面包含两行!!!!!!!!!!!!!!!!!!!!!!! -->
    
        <div id="holderinfo" class="pull-left" style="width: 100%;">
            <!-- 左半边 -->
            <div class="transfer-list pull-left">
                <p>持有人信息</p >
                <div class="details-list2 clearfix">
                    <label for="" class="pull-left">联系人 </label>
                    <input type="text" disabled="" value="<?PHP echo $transfer['holder']['contact'];?>"  class="pull-left" id="hcontact" value="">

                    <label for="" class="pull-left">电话 </label>
                    <input type="text"  disabled="disabled" value="<?PHP echo $transfer['holder']['phone'];?>"  class="pull-left" id="hphone" value="">

                    <label for="" class="pull-left">地址 </label>
                    <input type="text"  disabled="disabled" value="<?PHP echo $transfer['holder']['address'];?>" class="pull-left" id="haddress" value=" ">

                    <label for="" class="pull-left">邮箱 </label>
                     <input type="email"  disabled="disabled"  value="<?PHP echo $transfer['holder']['email'];?>" class="pull-left" id="hemail" value="">

                    <label for="" class="pull-left">职位 </label>
                    <input type="email"  disabled="disabled" value="<?PHP echo $transfer['holder']['position'];?>" class="pull-left" id="hposition" value=" ">
                    <table style="width: 100%;">
                        <tbody>
                            <td>
                                备注
                            </td>
                            <td >
                                <pre class="pull-left" id="hremark"><?PHP echo $transfer['holder']['remark'];?></pre>
                            </td>
                        </tbody>
                    </table>

                    
                </div>
            </div>
            <!-- 左半边结束 -->

            <!-- 右半边 -->
            <div class="transfer-list pull-right" <?PHP echo $transfer['lumper']['transfer']!=2?'style="display:none"':''; ?>>
                <p>居间人信息</p >
                <div class="details-list2 clearfix">
                    <label for="" class="pull-left">联系人 </label>
                    <input type="email" disabled="disabled" value="<?PHP echo $transfer['lumper']['contact'];?>" class="pull-left" id="lcontact" value="">

                    <label for="" class="pull-left">电话 </label>
                    <input type="email" disabled="disabled" value="<?PHP echo $transfer['lumper']['phone'];?>" class="pull-left" id="lphone" value="">

                    <label for="" class="pull-left">地址 </label>
                    <input type="email" disabled="disabled" value="<?PHP echo $transfer['lumper']['address'];?>" class="pull-left" id="laddress" value="">

                    <label for="" class="pull-left">邮箱 </label>
                     <input type="email" disabled="disabled" value="<?PHP echo $transfer['lumper']['email'];?>" class="pull-left" id="lemail" value="">

                    <label for="" class="pull-left">职位 </label>
                    <input type="email" disabled="disabled"  value="<?PHP echo $transfer['lumper']['position'];?>" class="pull-left" id="lposition" value="">
<!---->
<!--                    <label for="" class="pull-left">备注 </label>-->
<!--                     <textarea class="form-control" disabled="disabled"  id="lremark" value="请说明对本资产包的影响力">--><?PHP //echo $transfer['lumper']['remark'];?><!--</textarea>-->
                    <table style="width: 100%;">
                        <tbody>
                        <td>
                            备注
                        </td>
                        <td >
                            <pre class="pull-left" id="lremark"><?PHP echo $transfer['lumper']['remark'];?></pre>
                        </td>
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- 右半边结束 -->
        </div>
    <!-- 里面包含两行!!!!!!!!!!!!!!!!!!!!!!! 结束-->

    <!-- 一行开始 -->
    <!-- 转让方式 -->
    <div class="form-group " style="margin-top: 30px; margin-bottom: 5px; ">
        <label for="" class="pull-left control-label w10">转让方式</label>
        <div class="pull-left label-div label-div3" id="methodtype">
            <?PHP
            $package_transfer_method=Yii::$app->params['package_transfer_method'];
            $method='';
            if($transfer['holder']['method']){
                $method=$package_transfer_method[$transfer['holder']['method']];
            }
            echo '<input type="text" class="form-control" id="" value="'.$method.'" disabled="disabled">';
            ?>    
        </div>
        <label for="" class="pull-left control-label">预计转让时间</label>
        <div class="pull-left label-div3">
            <input type="text"  value="<?PHP echo $transfer['holder']['expected_transfer'];?>" class="form-control" id="expected_transfer" disabled="disabled">
        </div>
    </div>
    <!-- 转让意愿 -->
    <div class="form-group" style="margin-bottom: 5px;">
        <label for="inputEmail3" class="pull-left control-label">转让意愿</label>
        <div class="pull-left label-div  label-div2 ">
            <pre id="wish" style="padding-left: 12px;"><?PHP echo $transfer['holder']['wish'];?></pre>
        </div>
    </div>
    <!-- 转让价格 -->
    <div class="form-group" style="margin-bottom: 0px;">
        <label for="inputEmail3" class="pull-left control-label">转让价格</label>
        <div class="pull-left label-div  label-div2">
            <pre id="tdetail" style="padding-left: 12px;"><?PHP echo $transfer['holder']['detail'];?></pre>
        </div>
    </div>
    <!-- 结束按钮 -->
</form>
<?php } ?>
